﻿using System.Windows.Input;

using Outcoder;
using Outcoder.ComponentModel;
using Outcoder.UI.Xaml;

namespace CalciumTemplateApp
{
	/// <summary>
	/// The UI logic for the main (start) page of the app.
	/// </summary>
	public class MainViewModel : CustomViewModel
	{
		public MainViewModel() : base(AppResources.Page_Main_Title)
		{
		}

		/// <summary>
		/// When peforming an activity that may benefit from running 
		/// while the lock screen is engaged, 
		/// call the base class's <c>PromptForLockScreenConsentIfNecessary</c> method,
		/// as demonstrated.
		/// </summary>
		void PerformSomeLongRunningActivity()
		{
			PromptForLockScreenConsentIfNecessary();
		}

		/* The following is an example of a property and backing field 
		 * that uses property change notification and automatic state persistence. 
		 * See the Examples directory for more extensive examples. */
		//		string exampleText;
		//
		//		[Stateful(ApplicationStateType.Persistent)]
		//		public string ExampleText
		//		{
		//			get
		//			{
		//				return exampleText;
		//			}
		//			set
		//			{
		//				Assign(ref exampleText, value);
		//			}
		//		}
	}
}
